<me:UIMCT x:Class="WPFExcelReport.TZLAN"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                    xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
                    xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:AM="clr-namespace:WPFExcelReport;assembly=TAMSTAMM" 
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                    x:Name="TV"
                    Background="White"    
                    Loaded="Window_Loaded"
     >
    <me:UIMCT.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIMCT.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0"> 
            <WrapPanel Margin="10,10,0,0">  
                <Button Margin="10,10,0,0"  Content="{Binding Source={Localization:Translate Word=获取设备参数}}" Click="GetDevParamCommand"/>
                <Button Margin="10,10,0,0"  Content="{Binding Source={Localization:Translate Word=退出}}" Click="ExitCommand"/>
                <Button Margin="10,10,0,0"  Content="{Binding Source={Localization:Translate Word=保存}}" Click="SaveCommand"/>
            </WrapPanel>  
            <WrapPanel Margin="10,10,0,0">
                <Button Margin="10,10,0,0"  Content="{Binding Source={Localization:Translate Word=设定端口}}" Click="ServerPortCommand"/>
                <TextBox Margin="10,10,0,0"  Name="txtPort" Width="100" Text="4196"/>
            </WrapPanel>
        </StackPanel>
        <StackPanel Grid.Row="1">
            <WrapPanel Margin="10,10,0,0">
                <Button Margin="10,10,0,0" Content="{Binding Source={Localization:Translate Word=打开设备}}" Click="DevOpenParamCommand"/>
                <TextBlock Text="{Binding LOCALIP}"/>
                <Button Margin="10,10,0,0" Content="{Binding Source={Localization:Translate Word=设定设备参数}}" Click="SetDevParamCommand"/>
            </WrapPanel>
            <WrapPanel Margin="10,10,0,0">
                <TextBlock Text="{Binding Source={Localization:Translate Word=读/写}}"/>
                <ex:TXT72 MaxLength="4" Text="{Binding ZP0,ElementName=TV}" Width="80" IsAutoClear="True"/>
                <TextBlock Text="{Binding Source={Localization:Translate Word=地址}}"/>
                <ex:TXT72 MaxLength="4" Text="{Binding ZP1,ElementName=TV}"  Width="100"  IsAutoClear="True"/>
                <TextBlock Text="{Binding Source={Localization:Translate Word=个数}}"/>
                <ex:TXT72 MaxLength="4" Text="{Binding ZP2,ElementName=TV}"  Width="80"  IsAutoClear="True"/>
                <TextBlock Text="{Binding Source={Localization:Translate Word=值:}}"/>
                <ex:TXT72 MaxLength="200" Text="{Binding DATASEND}"  Width="300"  IsAutoClear="True"/>
                <TextBlock Text="2,3,4"/>
            </WrapPanel>
            <WrapPanel Margin="10,10,0,0" >
                <TextBlock Text="{Binding Source={Localization:Translate Word=DEVTYP:}}"/>
                <ex:TXT72 MaxLength="16" Text="{Binding DEVTYP}"  Width="150"/>
                <TextBlock Text="{Binding Source={Localization:Translate Word=IP:}}"/>
                <ex:TXT72 MaxLength="16" Text="{Binding LOCALIP}" Width="150"/>
                <ex:TXT72 MaxLength="16" Text="{Binding LOCALPORT}" Width="150"/>
                <TextBlock Text="{Binding Source={Localization:Translate Word=NETMASK:}}"/>
                <ex:TXT72 MaxLength="16" Text="{Binding NETMASK}"  Width="150"/>
                <TextBlock Text="{Binding Source={Localization:Translate Word=GATEWAY:}}"/>
                <ex:TXT72 MaxLength="16" Text="{Binding GATEWAY}"  Width="150"/>
                <TextBlock Text="{Binding Source={Localization:Translate Word=DNSSERVERIP:}}"/>
                <ex:TXT72 MaxLength="16" Text="{Binding DNSSERVERIP}"  Width="150"/>
                <TextBlock Text="{Binding Source={Localization:Translate Word=UDPGROUPIP:}}"/>
                <ex:TXT72 MaxLength="16" Text="{Binding UDPGROUPIP}"  Width="150"/>
                <TextBlock Text="{Binding Source={Localization:Translate Word=RESOURCEIP:}}"/>
                <ex:TXT72 MaxLength="16" Text="{Binding RESOURCEIP}"  Width="150"/> 
            </WrapPanel>
            <WrapPanel Margin="10,10,0,0" >
                <TextBlock Text="{Binding Source={Localization:Translate Word=MAC:}}"/>
                <TextBlock Text="{Binding DEVID}"/>
                <WF:TBTNEXE CMD="ZL02" DLL="TAMSTAMM" STWNW="MainWindow" INFO="管理" IsInfo="True" /> 
            </WrapPanel> 
            <AM:TAM04PLC IsAuto="True"
                         EXAUF="{Binding PLCIP,ElementName=TV}"
                         />
        </StackPanel> 
    </Grid>
</me:UIMCT>
